function divMod(kind,obj,url){
	var objstr=obj.id;
	obj.onclick = function(){
		var span = obj.getElementsByTagName("span")[0];
		var h4   = obj.getElementsByTagName("dt")[0];
		var defV = obj.getAttribute("data"),title=h4.innerHTML;
		title = title.replace(/<b.*?>.*?<\/b[^>]*>/ig,"");title = title.replace(/　/ig,'');
		switch (kind) {
			case 'input':
				ZeaiM.divBtmMod({objstr:objstr,title:title,value:defV,fn:function(inputV){
					inputV=zeai.clearhtmlall(inputV);
					span.html(inputV);span.class('ed');obj.setAttribute("data",inputV)
					FORM[objstr]=inputV;
				}});
			break;
			case 'textarea':
				ZeaiM.divBtmMod({objstr:objstr,title:title,value:defV,kind:'textarea',fn:function(inputV){
					inputV=zeai.clearhtmlall(inputV);
					span.html(inputV);span.class('ed');obj.setAttribute("data",inputV)
					FORM[objstr]=inputV;
				}});
			break;
			case 'range':
				ios_select2_range(title,eval(objstr+'_ARR1'),eval(objstr+'_ARR2'),defV,function(obj1,obj2){
					var i,v,i1=obj1.i,i2=obj2.i,v1=obj1.v,v2 = obj2.v;
					if (parseInt(i1) > parseInt(i2) && parseInt(i2)!= 0){i=i1,i1=i2,i2=i;v=v1,v1=v2,v2=v;}
					var list  = i1 + ',' + i2,title = v1 + '～' + v2;
					zeai.ajax({'url':url,'data':{"submitok":'ajax_'+objstr,"i1":i1,"i2":i2}},function(e){rs=zeai.jsoneval(e);
						if (rs.flag==1){span.html(title);obj.setAttribute("data",list)}
						//zeai.msg(rs.msg,{"time":0.5});
					});
				},',');
			break;
			case 'birthday':
				ios_select_area(title,yearData, monthData, dateData,defV,function(obj1,obj2,obj3){
					var birthday = obj1.i + '-' + obj2.i + '-' + obj3.i;
					span.html(birthday);span.class('ed');obj.setAttribute("data",birthday);
					FORM[objstr]=birthday;
				},'-');
			break;
			case 'select':
				ios_select1_normal(title,eval(objstr+'_ARR'),defV,function(obj1){
					var sid = obj1.i,sv=obj1.v;
					span.html(sv);span.class('ed');obj.setAttribute("data",sid);
					FORM[objstr]=sid;
				},',');
			break;
			case 'checkbox':
				ZeaiM.divBtmMod({"objstr":objstr,"title":title,"value":defV,"kind":"checkbox",fn:function(e){
					span.html(checkbox_div_list_get_listTitle(objstr,e));span.class('ed');obj.setAttribute("data",e);
					FORM[objstr]=e;
				}});
			break;
			case 'radio':
				ZeaiM.divBtmMod({objstr:objstr,title:title,value:defV,kind:'radio',fn:function(e){
					if(!zeai.ifint(e)){return {flag:0,msg:'请选择【'+title+'】'};}
					span.html(radio_div_list_get_title(e,eval(objstr + '_ARR')));span.class('ed');obj.setAttribute("data",e);
					FORM[objstr]=e;
				}});
			break;
			case 'rz_mob':
				ZeaiM.divBtmMod({objstr:objstr,title:title,value:defV,kind:'rz_mob',url:url,fn:function(e){
					if(!zeai.ifmob(e.mob)){return {flag:0,msg:'请输入正确的【手机号码】'};}
					if(!zeai.ifint(e.verify) || zeai.str_len(e.verify)!=4 ){return {flag:0,msg:'请输入正确的【短信验证码】'};}
					zeai.ajax({url:url+'&submitok=ajax_Zeai_mob_verify_chk',data:{mob:e.mob,verify:e.verify}},function(s){var rs=zeai.jsoneval(s);
						if(rs.flag==1){ZeaiM.divBtmMod(0);span.html(e.mob);span.class('ed');obj.setAttribute("data",e.mob);FORM[objstr]=e.mob;}else{zeai.msg(rs.msg);}
					});
				}});
			break;
		}	
	}
}